import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { HeroListComponent } from './hero-list/hero-list.component';
import { HeroDetailComponent } from './hero-detail/hero-detail.component';
import { HeroRoutingModule } from './hero-routing.module';

import { NameBoldDirective } from '../../directives/name-bold.directive';

import { HeroService } from './hero.service';

import { ConfirmComponent } from '../../shared/modal/confirm/confirm.component';

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    HeroRoutingModule,
  ],
  declarations: [
    NameBoldDirective,
    HeroListComponent,
    HeroDetailComponent,
    ConfirmComponent
  ],
  providers: [HeroService],
  entryComponents: [
    ConfirmComponent
  ]

})
export class HeroModule { }
